---
sidebar_class_name: hidden
hide_table_of_contents: true
---

import CodeBlock from "@theme/CodeBlock";
import Extraction from "@examples/chains/openai_functions_extraction.ts";

# `Extraction`

:::tip Compatibility
Must be used with an [OpenAI Functions](https://platform.openai.com/docs/guides/gpt/function-calling) model.
:::

This chain is designed to extract lists of objects from an input text and schema of desired info.

import IntegrationInstallTooltip from "@mdx_components/integration_install_tooltip.mdx";

<IntegrationInstallTooltip></IntegrationInstallTooltip>

```bash npm2yarn
npm install @langchain/openai
```

<CodeBlock language="typescript">{Extraction}</CodeBlock>
